package club.justwill.single.persistence.support;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.sql.Timestamp;

/**
 * Created by luoyu on 15-12-24.
 */

@MappedSuperclass
public class ActivityBase extends Jpo {

    @Column(name = "acti_time")
    private Timestamp actiTime;

    @Column(name = "name")
    private String name;

    @Column(name = "address")
    private String address;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "status")
    private Integer status;

    @Column(name = "activity_description")
    private String activityDescription;

    @Column(name = "cover")
    private String cover;

    protected void copyBase(ActivityBase other) {
        setActiTime(other.getActiTime());
        setName(other.getName());
        setAddress(other.getAddress());
        setUserId(other.getUserId());
        setStatus(other.getStatus());
        setCover(other.getCover());
        setActivityDescription(other.getActivityDescription());
    }

    public Timestamp getActiTime() {
        return actiTime;
    }

    public void setActiTime(Timestamp actiTime) {
        this.actiTime = actiTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActivityDescription() {
        return activityDescription;
    }

    public void setActivityDescription(String activityDescription) {
        this.activityDescription = activityDescription;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }
}
